//
//  ViewController.h
//  PushToTalk
//
//  Created by apple on 14-5-18.
//  Copyright (c) 2014年 GJYSK. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>

@interface ViewController : UIViewController<AVAudioPlayerDelegate>
{
    IBOutlet UITextField *FreqTextField;
    IBOutlet UITextField *ValueField;
    BOOL toggle;
    
    NSURL *RecordedTempFileName;
    AVAudioRecorder *Recorder;
    NSError *error;
}

@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *SpinnerIndicatorView;

@property (strong, nonatomic) NSMutableData *connectionData;
@property (strong, nonatomic) NSURLConnection *connection;
@property (strong, nonatomic) AVAudioPlayer *AudioPlayer;

- (IBAction)PushToTalk:(id)sender;

@end
